package cn.edu.huanu.pojo;

import java.time.LocalDateTime;

/**
 * User类描述用户信息
 *
 * User类 对应 t_user表
 *   id属性  对应  id字段
 * @author hb
 * @date 2025-10-17 15:15:34
 */
public class User {
    private Integer id;
    private String username;
    private String pwd;
    private LocalDateTime doTime;

    public User(){

    }

    public User(String username, String pwd) {
        this.username = username;
        this.pwd = pwd;
    }

    public User(Integer id, String username, String pwd, LocalDateTime doTime) {
        this.id = id;
        this.username = username;
        this.pwd = pwd;
        this.doTime = doTime;
    }
    //提供getter和setter方法


    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", pwd='" + pwd + '\'' +
                ", doTime=" + doTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public LocalDateTime getDoTime() {
        return doTime;
    }

    public void setDoTime(LocalDateTime doTime) {
        this.doTime = doTime;
    }
}
